﻿using System.Web.Security;

namespace DotNetDream.Models
{
    public partial class BlogUser
    {
        #region Fields
        
        #endregion

        #region Properties
        /// <summary>
        /// Query user email from ASP tables
        /// </summary>
        public string Email
        {
            get
            {
                MembershipUser user = Membership.GetUser(Id);
                return user.Email;
            }
        }

        /// <summary>
        /// Query user name from ASP tables
        /// </summary>
        public string UserName
        {
            get
            {
                MembershipUser user = Membership.GetUser(Id);
                return user.UserName;
            }
        }
        #endregion
    }
}